package com.gzhryc.net_marketing.cloud.account.dao.enums;

public class TransferMoneyOrderEnum {

    public enum State {

        Wait(1,"等待处理"),Processing(2, "处理中"), Success(3, "转账成功"), Fail(4, "转账失败");

        private Integer index;
        private final String note;

        State(Integer index, String note) {
            this.index = index;
            this.note = note;
        }

        public Integer index() {
            return index;
        }

        public String note() {
            return note;
        }

        public static String note(Integer index) {
            State[] temp = State.values();
            for (int i = 0; i < temp.length; i++) {
                State item = temp[i];
                if (item.index.equals(index)) {
                    return item.note;
                }
            }
            return null;
        }
    }
}
